<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@page import="com.yaodian100.core.common.utils.ServerValue"%>
<c-rt:set var="midContextPath" value='<%=ServerValue.getMidContextPath()%>'/>  
<a name="top" id="top"></a>
<div class="stepflow">
	<c-rt:if test="${empty product.productId}">
  	<span class="firstone on"><strong>1.设置商品主檔</strong><b></b></span>
   	<span class="off">2.设置商品规格<b></b></span>
   	<span class="off">3.设置商品图檔<b></b></span>
   	<span class="off">4.预览/设置商品上下架<b></b></span>
   	<span class="lastone off"> <strong>5.商品评价</strong> <b>&nbsp;</b> </span>
  </c-rt:if>
  <c-rt:if test="${not empty product.productId}">
		<c-rt:set value="${nowStep eq 1 ? 'on' : 'off'}" var="step1"/>
		<span class="firstone ${step1}">
			<c-rt:if test="${step1 eq 'on'}"><strong>1.设置商品主檔</strong></c-rt:if>
			<c-rt:if test="${step1 eq 'off'}">
				<c-rt:choose>
					<c-rt:when test="${product.stepFlag ge 1}"><a href="${midContextPath}/product2/edit.do?productId=${product.productId}">1.设置商品主檔</a></c-rt:when>
					<c-rt:otherwise>1.设置商品主檔</c-rt:otherwise>
				</c-rt:choose>
			</c-rt:if>
			<b>&nbsp;</b>
		</span>
		<c-rt:set value="${nowStep eq 2 ? 'on' : 'off'}" var="step2"/>
		<span class="${step2}">
			<c-rt:if test="${step2 eq 'on'}"><strong>2.设置商品规格</strong></c-rt:if>
			<c-rt:if test="${step2 eq 'off'}">
				<c-rt:choose>
					<c-rt:when test="${product.stepFlag ge 2}"><a href="${midContextPath}/product2/spec.do?productId=${product.productId}">2.设置商品规格</a></c-rt:when>
					<c-rt:otherwise>2.设置商品规格</c-rt:otherwise>
				</c-rt:choose>			
			</c-rt:if>
			<b>&nbsp;</b>
		</span>
		<c-rt:set value="${nowStep eq 3 ? 'on' : 'off'}" var="step3"/>
		<span class="${step3}">
			<c-rt:if test="${step3 eq 'on'}"><strong>3.设置商品图檔</strong></c-rt:if>
			<c-rt:if test="${step3 eq 'off'}">
				<c-rt:choose>
					<c-rt:when test="${product.stepFlag ge 3}"><a href="${midContextPath}/image2/edit.do?productId=${product.productId}">3.设置商品图檔</a></c-rt:when>
					<c-rt:otherwise>3.设置商品图檔</c-rt:otherwise>
				</c-rt:choose>				
			</c-rt:if>
			<b>&nbsp;</b>
		</span>
		<c-rt:set value="${nowStep eq 4 ? 'on' : 'off'}" var="step4"/>
		<span class="${step4}">
			<c-rt:if test="${step4 eq 'on'}"><strong>4.预览/设置商品上下架</strong></c-rt:if>
			<c-rt:if test="${step4 eq 'off'}">
				<c-rt:choose>
					<c-rt:when test="${product.stepFlag ge 4}"><a href="${midContextPath}/shelf2/list.do?productId=${product.productId}">4.预览/设置商品上下架</a></c-rt:when>
					<c-rt:otherwise>4.预览/设置商品上下架</c-rt:otherwise>
				</c-rt:choose>
			</c-rt:if>
			<b>&nbsp;</b>
		</span>
		<c-rt:set value="${nowStep eq 5 ? 'on' : 'off'}" var="step5"/>
		<span class="lastone ${step5}">
			<c-rt:if test="${step5 eq 'on'}"><strong>5.商品评价</strong></c-rt:if>
			<c-rt:if test="${step5 eq 'off'}">
				<c-rt:choose>
					<c-rt:when test="${product.stepFlag ge 4}"><a href="${midContextPath}/comment/product.do?productId=${product.productId}">5.商品评价</a></c-rt:when>
					<c-rt:otherwise>5.商品评价</c-rt:otherwise>
				</c-rt:choose>
			</c-rt:if>
			<b>&nbsp;</b>
		</span>						
	</c-rt:if>
</div>
<div><span class="txt-red">*</span> 表示该项必填</div>